<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商户管理中心 - 贵州四季康养文旅</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tdesign-icons-vue-next/dist/index.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f0f2f5;
            color: #333;
            overflow-x: hidden;
        }
        .header {
            background-color: #fff;
            position: sticky;
            top: 0;
            z-index: 10;
            height: 64px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        }
        .sidebar {
            width: 200px;
            background-color: #001529;
            color: #fff;
            height: calc(100vh - 64px);
            position: fixed;
            top: 64px;
            left: 0;
            overflow-y: auto;
        }
        .content {
            margin-left: 200px;
            padding: 24px;
            min-height: calc(100vh - 64px);
        }
        .menu-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .menu-item:hover {
            background-color: #1890ff;
        }
        .menu-item.active {
            background-color: #1890ff;
        }
        .menu-icon {
            margin-right: 12px;
            font-size: 16px;
        }
        .data-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            padding: 20px;
            height: 100%;
        }
        .data-card-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 16px;
        }
        .data-card-value {
            font-size: 24px;
            font-weight: 500;
            color: #333;
        }
        .data-card-change {
            font-size: 12px;
            margin-top: 8px;
        }
        .data-card-change.up {
            color: #52c41a;
        }
        .data-card-change.down {
            color: #f5222d;
        }
        .chart-container {
            height: 300px;
            width: 100%;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-top: 24px;
        }
        .order-item {
            background-color: white;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            border-left: 3px solid #1890ff;
        }
        .status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
        }
        .status-pending {
            background-color: #faad14;
            color: white;
        }
        .status-confirmed {
            background-color: #52c41a;
            color: white;
        }
        .status-completed {
            background-color: #1890ff;
            color: white;
        }
        .status-cancelled {
            background-color: #f5222d;
            color: white;
        }
        .tab-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            margin-top: 24px;
            overflow: hidden;
        }
        .tab-header {
            display: flex;
            border-bottom: 1px solid #f0f0f0;
        }
        .tab-item {
            padding: 12px 20px;
            cursor: pointer;
            font-size: 14px;
            position: relative;
        }
        .tab-item.active {
            color: #1890ff;
            font-weight: 500;
        }
        .tab-item.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20px;
            right: 20px;
            height: 2px;
            background-color: #1890ff;
        }
        .tab-content {
            padding: 20px;
        }
        .product-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.3s;
        }
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .product-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }
        .product-info {
            padding: 12px;
        }
        .product-title {
            font-weight: 500;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 40px;
        }
        .product-price {
            color: #f5222d;
            font-weight: 500;
        }
        .product-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #f0f0f0;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="header flex items-center justify-between px-6">
        <div class="flex items-center">
            <div class="text-xl font-bold">贵州四季康养文旅</div>
            <div class="ml-4 text-sm text-gray-500">商户管理中心</div>
        </div>
        <div class="flex items-center">
            <div class="flex items-center mr-6">
                <i class="t-icon t-icon-notification text-xl text-gray-600"></i>
                <span class="w-5 h-5 bg-red-500 text-white rounded-full flex items-center justify-center text-xs absolute translate-x-3 -translate-y-2">3</span>
            </div>
            <div class="flex items-center">
                <img src="https://via.placeholder.com/36" class="w-9 h-9 rounded-full" alt="店铺头像">
                <span class="ml-2">山里农家乐</span>
                <i class="t-icon t-icon-chevron-down ml-1 text-gray-600"></i>
            </div>
        </div>
    </div>
    
    <!-- 侧边导航 -->
    <div class="sidebar">
        <div class="menu-item active">
            <i class="t-icon t-icon-dashboard menu-icon"></i>
            <span>数据概览</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-shop menu-icon"></i>
            <span>店铺管理</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-cart menu-icon"></i>
            <span>订单管理</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-file menu-icon"></i>
            <span>商品管理</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-discount menu-icon"></i>
            <span>营销中心</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-chart menu-icon"></i>
            <span>数据统计</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-user-add menu-icon"></i>
            <span>客户管理</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-wallet menu-icon"></i>
            <span>财务管理</span>
        </div>
        <div class="menu-item">
            <i class="t-icon t-icon-setting menu-icon"></i>
            <span>系统设置</span>
        </div>
    </div>
    
    <!-- 主内容区 -->
    <div class="content">
        <!-- 欢迎信息 -->
        <div class="flex justify-between items-center mb-6">
            <div>
                <h1 class="text-2xl font-medium">欢迎回来，店长</h1>
                <p class="text-gray-500 mt-1">今天是 2023年6月12日 星期一，祝您生意兴隆！</p>
            </div>
            <div>
                <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 flex items-center">
                    <i class="t-icon t-icon-plus mr-1"></i>
                    发布新商品
                </button>
            </div>
        </div>
        
        <!-- 数据卡片 -->
        <div class="grid grid-cols-4 gap-4">
            <div class="data-card">
                <div class="data-card-title">今日订单数</div>
                <div class="data-card-value">42</div>
                <div class="data-card-change up">
                    <i class="t-icon t-icon-rise"></i>
                    较昨日 +23.8%
                </div>
            </div>
            <div class="data-card">
                <div class="data-card-title">今日销售额（元）</div>
                <div class="data-card-value">12,680</div>
                <div class="data-card-change up">
                    <i class="t-icon t-icon-rise"></i>
                    较昨日 +15.2%
                </div>
            </div>
            <div class="data-card">
                <div class="data-card-title">待处理订单</div>
                <div class="data-card-value">8</div>
                <div class="data-card-change down">
                    <i class="t-icon t-icon-fall"></i>
                    较昨日 -4.6%
                </div>
            </div>
            <div class="data-card">
                <div class="data-card-title">店铺访问量</div>
                <div class="data-card-value">1,256</div>
                <div class="data-card-change up">
                    <i class="t-icon t-icon-rise"></i>
                    较昨日 +8.3%
                </div>
            </div>
        </div>
        
        <!-- 销售趋势图 -->
        <div class="chart-container">
            <div class="flex justify-between items-center mb-4">
                <div class="font-medium">销售趋势</div>
                <div class="flex">
                    <div class="text-sm text-gray-500 mr-4 cursor-pointer">今日</div>
                    <div class="text-sm text-gray-500 mr-4 cursor-pointer">本周</div>
                    <div class="text-sm text-blue-600 mr-4 cursor-pointer">本月</div>
                    <div class="text-sm text-gray-500 cursor-pointer">全年</div>
                </div>
            </div>
            <!-- 图表区域占位 -->
            <div class="w-full h-64 bg-gray-100 rounded flex items-center justify-center">
                <span class="text-gray-400">销售趋势图表展示区域</span>
            </div>
        </div>
        
        <!-- 订单与商品管理Tab -->
        <div class="tab-container">
            <div class="tab-header">
                <div class="tab-item active">最新订单</div>
                <div class="tab-item">热销商品</div>
                <div class="tab-item">店铺评价</div>
            </div>
            <div class="tab-content">
                <!-- 最新订单列表 -->
                <div>
                    <div class="order-item">
                        <div class="flex justify-between">
                            <div class="font-medium">订单号：GZ20230612001</div>
                            <div class="status-badge status-pending">待处理</div>
                        </div>
                        <div class="mt-2 text-sm text-gray-500">
                            <span>李先生</span>
                            <span class="mx-2">|</span>
                            <span>联系电话：138****6666</span>
                            <span class="mx-2">|</span>
                            <span>2023-06-12 09:18:25</span>
                        </div>
                        <div class="mt-2">民族特色挂毯 × 2</div>
                        <div class="flex justify-between mt-2">
                            <div class="text-red-500">¥ 298.00</div>
                            <div>
                                <button class="text-blue-600 mr-2">接单</button>
                                <button class="text-gray-500">取消</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="order-item">
                        <div class="flex justify-between">
                            <div class="font-medium">订单号：GZ20230612002</div>
                            <div class="status-badge status-confirmed">已确认</div>
                        </div>
                        <div class="mt-2 text-sm text-gray-500">
                            <span>张女士</span>
                            <span class="mx-2">|</span>
                            <span>联系电话：159****8888</span>
                            <span class="mx-2">|</span>
                            <span>2023-06-12 10:05:37</span>
                        </div>
                        <div class="mt-2">贵州山区野生蜂蜜 × 1</div>
                        <div class="flex justify-between mt-2">
                            <div class="text-red-500">¥ 128.00</div>
                            <div>
                                <button class="text-blue-600 mr-2">发货</button>
                                <button class="text-gray-500">联系买家</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="order-item">
                        <div class="flex justify-between">
                            <div class="font-medium">订单号：GZ20230612003</div>
                            <div class="status-badge status-completed">已完成</div>
                        </div>
                        <div class="mt-2 text-sm text-gray-500">
                            <span>王先生</span>
                            <span class="mx-2">|</span>
                            <span>联系电话：135****2222</span>
                            <span class="mx-2">|</span>
                            <span>2023-06-11 16:43:11</span>
                        </div>
                        <div class="mt-2">苗族手工银饰 × 1</div>
                        <div class="flex justify-between mt-2">
                            <div class="text-red-500">¥ 580.00</div>
                            <div>
                                <button class="text-blue-600">查看详情</button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="text-center mt-4">
                        <button class="text-blue-600">查看更多订单</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 商品管理 -->
        <div class="mt-6">
            <div class="flex justify-between items-center mb-4">
                <div class="text-lg font-medium">商品管理</div>
                <div class="flex items-center">
                    <div class="relative mr-4">
                        <input type="text" placeholder="搜索商品" class="border border-gray-300 rounded-md pl-8 pr-4 py-1 text-sm">
                        <i class="t-icon t-icon-search absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                    </div>
                    <button class="border border-gray-300 rounded-md px-3 py-1 text-sm flex items-center">
                        <i class="t-icon t-icon-filter-fill mr-1"></i>
                        筛选
                    </button>
                </div>
            </div>
            
            <div class="grid grid-cols-4 gap-4">
                <!-- 商品卡片 -->
                <div class="product-card">
                    <img src="https://via.placeholder.com/300x150?text=民族特色挂毯" class="product-image" alt="商品图片">
                    <div class="product-info">
                        <div class="product-title">贵州少数民族特色手工挂毯 彝族风情壁挂装饰</div>
                        <div class="product-price">¥149.00</div>
                        <div class="product-status">
                            <div class="text-sm text-gray-500">销量: 42</div>
                            <div class="text-sm text-gray-500">库存: 68</div>
                        </div>
                    </div>
                </div>
                
                <div class="product-card">
                    <img src="https://via.placeholder.com/300x150?text=贵州山区野生蜂蜜" class="product-image" alt="商品图片">
                    <div class="product-info">
                        <div class="product-title">贵州山区野生蜂蜜 纯天然农家自产土蜂蜜 500g装</div>
                        <div class="product-price">¥128.00</div>
                        <div class="product-status">
                            <div class="text-sm text-gray-500">销量: 86</div>
                            <div class="text-sm text-gray-500">库存: 24</div>
                        </div>
                    </div>
                </div>
                
                <div class="product-card">
                    <img src="https://via.placeholder.com/300x150?text=苗族手工银饰" class="product-image" alt="商品图片">
                    <div class="product-info">
                        <div class="product-title">贵州苗族手工银饰 民族风项链手镯套装 传统工艺</div>
                        <div class="product-price">¥580.00</div>
                        <div class="product-status">
                            <div class="text-sm text-gray-500">销量: 18</div>
                            <div class="text-sm text-gray-500">库存: 35</div>
                        </div>
                    </div>
                </div>
                
                <div class="product-card">
                    <img src="https://via.placeholder.com/300x150?text=黔东南特产腊肉" class="product-image" alt="商品图片">
                    <div class="product-info">
                        <div class="product-title">黔东南特产腊肉 农家自制烟熏腊肉 传统工艺 500g</div>
                        <div class="product-price">¥98.00</div>
                        <div class="product-status">
                            <div class="text-sm text-gray-500">销量: 64</div>
                            <div class="text-sm text-gray-500">库存: 42</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="text-center mt-4">
                <button class="text-blue-600">管理全部商品</button>
            </div>
        </div>
    </div>
</body>
</html> 